#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QButtonGroup>

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();
private:
    QWidget* navWidget;

    QWidget* mainWidget;

    QStackedWidget* stackedWidget;

    QButtonGroup* btnGroup;

private:
    void initNav();
    void initMain();

private slots:
    void onButtonClicked(); // 左侧导航按钮的槽函数

};
#endif // MAINWIDGET_H
